﻿using PropertyChanged;
using System.Collections.Generic;
using System.ComponentModel;

namespace HeerCards.Info
{
    [AddINotifyPropertyChangedInterface]
    public class GobalSetting : INotifyPropertyChanged
    {
        public string ReplyMessage { get; set; }
        public string TenReplyMessage { get; set; }
        /// <summary>
        /// 每一张卡的十连文字格式
        /// </summary>
        public string TenReplyMessageCardFormat { get; set; }
        public bool TenReplyNoReturn { get; set; }
        public bool useImage { get; set; }
        public bool saveData { get; set; }
        public string allowGroups { get; set; }
        public bool enableApp { get; set; }
        public bool enableCheckin { get; set; }
        public bool UseTimesLimit { get; set; }
        public List<RewardInfo> CheckinRewards { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;
        public GobalSetting()
        {
            ReplyMessage = "";
            UseTimesLimit = false;
            TenReplyNoReturn = false;
            TenReplyMessage = "";
            TenReplyMessageCardFormat = "";
            allowGroups = "";
            enableApp = true;
            enableCheckin = true;
            saveData = true;
            CheckinRewards = new List<RewardInfo>();
        }
    }
    public class RewardInfo 
    {
        public string Name { get; set; }
        public int Min { get; set; } = 0;
        public int Max { get; set; } = 0;
        public RewardInfo()
        {

        }
    }
}